package com.xyz.study.design_mode.b_adapter.objectadapter;

import com.xyz.study.design_mode.b_adapter.objectadapter.mode.NewPrinter;
import com.xyz.study.design_mode.b_adapter.objectadapter.mode.NewPrinterConcrete;
import com.xyz.study.design_mode.b_adapter.objectadapter.mode.OldPrinterConcrete;

/**
 * 角色: Client
 * 对象适配器
 * @author XYZ
 * @version 1.0.0
 * @since 2021/1/15
 */
public class ObjectAdapterMain {
    public static void main(String[] args) {
        NewPrinter newPrinter = new NewPrinterConcrete(new OldPrinterConcrete());
        newPrinter.print();
    }
}
